package com.lx;


import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;

/**
 *   设置请求体
 */
@Data
public class Request<T> implements Serializable {
    private RequestHader heder;
    @Valid
    private T body;

    public Request() {
        this.heder = RequestHader.getRequestHader();
    }

    public Request(T data) {
        this.body = data;
        this.heder = RequestHader.getRequestHader();
    }
}
